package com.xinshujia.wxxcx.controller;


import cn.dev33.satoken.annotation.SaCheckLogin;

import com.xinshujia.wxxcx.service.ProductionLineService;
import com.xinshujia.wxxcx.util.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Cui Han
 * @Date 2024/3/12 18:29
 * @Description: TODO
 * @Version 1.0
 */
@RestController
@RequestMapping("/equipment")
public class ProductionLineController {

    @Autowired
    private ProductionLineService productionLineService;

    /**
     * 查询产线
     * @return
     */
    @GetMapping("/findProductionLine")
    @SaCheckLogin
    public Result findProductionLine(){
        return Result.ok(productionLineService.findProductionLine());
    }
}
